const { ccclass, property } = cc._decorator;
import baseManager from "../../../app/base/baseManager";
import { app } from "../../../app/app";

@ccclass
export default class gameManager extends baseManager {
    private gaming = false;

    startGame() {
        this.gaming = true;
    }

    overGame() {
        this.gaming = false;
    }

    update(dt) {
        if (this.gaming) {
            app.ecs.update(dt);
        }
    }
}